<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>{$title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="{$tempdir}admin/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>

{if $records == 1}
{literal}
<script type="text/javascript">
<!--
 function complete(it, name, art) 
 {
  bla = confirm("Do you wish to mark '" + name + "' as complete?");
  if (bla) {
   commentprompt = prompt("Please type any special comments here (Leave blank for none)");
   {/literal}
   window.location = "{$pagename}&itemid="+it+"&comment="+commentprompt+"&place="+art+"&id={$userid}&action=addreq";
  {literal}
  } 
 }
  
function uncomplete(it, name, art) {
  bla = confirm("Do you wish to mark '" + name + "' as uncomplete?");
  if (bla) {
   {/literal}
   window.location = "{$pagename}&itemid="+it+"&place="+art+"&id={$userid}&action=reqremove";
  {literal}
  }
 }
 
 function completeb(it, name) {
  bla = confirm("Do you wish to mark all of '" + name + "' as complete?");
  if (bla) {
   commentprompt = prompt("Please type any special comments here (Leave blank for none, will be used for all sections)");
   {/literal}
   window.location = "{$pagename}&itemid="+it+"&comment="+commentprompt+"&id={$userid}&action=adv";
  {literal}
  } 
 }
 
 function addbadge() {
  badgename = prompt("What badge do you wish to award?");
  if (badgename != false && badgename != '' && badgename != "undefined" && badgename != "null" && badgename != null) {
   datebadge = prompt("What date was " + badgename + " awarded (yyyy/mm/dd)?");
   {/literal}
   window.location = "{$pagename}&badge="+badgename+"&date="+datebadge+"&id={$userid}&action=badge";
  {literal}
  } 
 }
-->
</script>
{/literal}
{/if}
{if $editor == true}
{literal}
<script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce_gzip.php"></script>
<script language="javascript" type="text/javascript">
	tinyMCE.init({
        mode : "exact",
        elements: "editor",
        theme : "advanced",
        plugins : "table,advhr,emotions,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,inlinepopups,ibrowser,layer",
        theme_advanced_buttons1_add : "fontselect,fontsizeselect",
        theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
        theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
        theme_advanced_buttons3_add_before : "tablecontrols,separator",
        theme_advanced_buttons3_add : "emotions,advhr,separator,print,separator,ltr,rtl,separator,fullscreen, ibrowser,separator,insertlayer,moveforward,movebackward,absolute",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_path_location : "bottom",
        plugin_insertdate_dateFormat : "%Y-%m-%d",
        plugin_insertdate_timeFormat : "%H:%M:%S",
        spellchecker_languages : "+English=en",
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        external_link_list_url : "example_link_list.js",
        external_image_list_url : "example_image_list.js",
        relative_urls: false
	});
</script>
{/literal}
{/if}
<script language="JavaScript" type="text/JavaScript" src="includes/functions.js"> </script>
</head>
<body>

